package com.example.guiguihomemedical.service.impl;

import com.example.guiguihomemedical.entity.Servicesigning;
import com.example.guiguihomemedical.entity.Userclassification;
import com.example.guiguihomemedical.mapper.UserclassificationMapper;
import com.example.guiguihomemedical.service.UserclassificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserclassificationServiceImpl implements UserclassificationService {
@Autowired
private UserclassificationMapper userclassificationMapper;
    @Override
    public void delete(String idcard, Integer peopleid) {
        userclassificationMapper.delete(idcard,peopleid);
    }

    @Override
    public void add(Userclassification userclassification) {
        userclassificationMapper.add(userclassification);
    }

    @Override
    public List<Userclassification> getByIdcard(String idcard) {
        return userclassificationMapper.geyByIdcard(idcard);
    }

    @Override
    public List<Userclassification> getAll() {
        return userclassificationMapper.getAll();
    }
}
